EXTEND: Now try customizing your program! Be sure to meet these minimum technical requirements:

  1. Try changing the values of the rectangle width and height variables.
  2. Calculate perimeter for your rectangle and name it rectangle_perim. Remember, perimeter is 2 times the height + 2 times the width. Use the rectangle's .say() to say the perimeter instead of area!
  3. Add a square to your program and name it my_square. Have it say its area.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)